home *** CD-ROM | disk | FTP | other *** search
-
-
-
- PPPPRRRR((((1111)))) PPPPRRRR((((1111))))
-
-
-
- NNNNAAAAMMMMEEEE
- pr - print files
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- pppprrrr [[----ccccoooolllluuuummmmnnnn] [----wwwwwidth] [----aaaa]] [----eeeeck] [----iiiick] [----ddddrrrrttttffffpppp] [++++page] [----nnnnck]
- [----oooooffset] [----lllllength] [----ssssseparator] [----hhhhheader] [file ...]
-
- pppprrrr [[----mmmm] [----wwwwwidth]] [----eeeeck] [----iiiick] [----ddddrrrrttttffffpppp] [++++page] [----nnnnck] [----oooooffset]
- [----lllllength] [----ssssseparator] [----hhhhheader] file1 file2 ...
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _p_r is used to format and print the contents of a file. If _f_i_l_e is ----, or
- if no files are specified, _p_r assumes standard input. _p_r prints the
- named files on standard output.
-
- By default, the listing is separated into pages, each headed by the page
- number, the date and time that the file was last modified, and the name
- of the file. Page length is 66 lines which includes 10 lines of header
- and trailer output. The header is composed of 2 blank lines, 1 line of
- text ( can be altered with ----hhhh), and 2 blank lines; the trailer is 5
- blank lines. For single column output, line width may not be set and is
- unlimited. For multicolumn output, line width may be set and the default
- is 72 columns. Diagnostic reports (failed options) are reported at the
- end of standard output associated with a terminal, rather than
- interspersed in the output. Pages are separated by series of line feeds
- rather than form feed characters.
-
- By default, columns are of equal width, separated by at least one space;
- lines which do not fit are truncated. If the ----ssss option is used, lines are
- not truncated and columns are separated by the _s_e_p_a_r_a_t_o_r character.
-
- Either -_c_o_l_u_m_n or ----mmmm should be used to produce multi-column output. ----aaaa
- should only be used with -_c_o_l_u_m_n and not ----mmmm.
-
- Command line options are
-
- ++++_p_a_g_e Begin printing with page numbered _p_a_g_e (default is 1).
-
- ----_c_o_l_u_m_n Print _c_o_l_u_m_n columns of output (default is 1). Output appears
- as if ----eeee and ----iiii are turned on for multi-column output. May not
- use with ----mmmm.
-
- ----aaaa Print multi-column output across the page one line per column.
- _c_o_l_u_m_n_s must be greater than one. If a line is too long to fit
- in a column, it is truncated.
-
- ----mmmm Merge and print all files simultaneously, one per column. The
- maximum number of files that may be specified is eight. If a
- line is too long to fit in a column, it is truncated. May not
- use with -_c_o_l_u_m_n.
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- PPPPRRRR((((1111)))) PPPPRRRR((((1111))))
-
-
-
- ----dddd Double-space the output. Blank lines that result from double-
- spacing are dropped when they occur at the top of a page.
-
- ----eeee_c_k Expand input tabs to character positions _k+1, 2*_k+1, 3*_k+1,
- etc. If _k is 0 or is omitted, default tab settings at every
- eighth position are assumed. Tab characters in the input are
- expanded into the appropriate number of spaces. If _c (any
- non-digit character) is given, it is treated as the input tab
- character (default for _c is the tab character).
-
- ----iiii_c_k In output, replace white space wherever possible by inserting
- tabs to character positions _k+1, 2*_k+1, 3*_k+1, etc. If _k is 0
- or is omitted, default tab settings at every eighth position
- are assumed. If _c (any non-digit character) is given, it is
- treated as the output tab character (default for _c is the tab
- character).
-
- ----nnnn_c_k Provide _k-digit line numbering (default for _k is 5). The
- number occupies the first _k+1 character positions of each
- column of single column output or each line of ----mmmm output. If _c
- (any non-digit character) is given, it is appended to the line
- number to separate it from whatever follows (default for _c is a
- tab).
-
- ----wwww_w_i_d_t_h Set the width of a line to _w_i_d_t_h character positions (default
- is 72). This is effective only for multi-column output (-
- _c_o_l_u_m_n and ----mmmm). There is no line limit for single column
- output.
-
- ----oooo_o_f_f_s_e_t Offset each line by _o_f_f_s_e_t character positions (default is 0).
- The number of character positions per line is the sum of the
- width and offset.
-
- ----llll_l_e_n_g_t_h Set the length of a page to _l_e_n_g_t_h lines (default is 66). ----llll0
- is reset to ----llll66. When the value of _l_e_n_g_t_h is 10 or less, ----tttt
- appears to be in effect since headers and trailers are
- suppressed. By default, output contains 5 lines of header and
- 5 lines of trailer leaving 56 lines for user-supplied text.
- When ----llll_l_e_n_g_t_h is used and _l_e_n_g_t_h exceeds 10, then _l_e_n_g_t_h-10
- lines are left per page for user supplied text. When _l_e_n_g_t_h is
- 10 or less, header and trailer output is omitted to make room
- for user supplied text.
-
- ----hhhh _h_e_a_d_e_r Use _h_e_a_d_e_r as the text line of the header to be printed instead
- of the file name. ----hhhh is ignored when ----tttt is specified or
- ----llll_l_e_n_g_t_h is specified and the value of _l_e_n_g_t_h is 10 or less.
- (----hhhh iiiissss tttthhhheeee oooonnnnllllyyyy _p_r option requiring space between the option
- and argument.)
-
- ----pppp Pause before beginning each page if the output is directed to a
- terminal (_p_r will ring the bell at the terminal and wait for a
- carriage return).
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- PPPPRRRR((((1111)))) PPPPRRRR((((1111))))
-
-
-
- ----ffff Use single form-feed character for new pages (default is to use
- a sequence of line-feeds). Pause before beginning the first
- page if the standard output is associated with a terminal.
-
- ----rrrr Print no diagnostic reports on files that will not open.
-
- ----tttt Print neither the five-line identifying header nor the five-
- line trailer normally supplied for each page. Quit printing
- after the last line of each file without spacing to the end of
- the page. Use of ----tttt overrides the ----hhhh option.
-
- ----ssss_s_e_p_a_r_a_t_o_r
- Separate columns by the single character _s_e_p_a_r_a_t_o_r instead of
- by the appropriate number of spaces (default for _s_e_p_a_r_a_t_o_r is a
- tab). Prevents truncation of lines on multicolumn output
- unless ----wwww is specified.
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
- Print ffffiiiilllleeee1111 and ffffiiiilllleeee2222 as a double-spaced, three-column listing headed by
- ``file list'':
-
- pppprrrr ----3333ddddhhhh """"ffffiiiilllleeee lllliiiisssstttt"""" ffffiiiilllleeee1111 ffffiiiilllleeee2222
-
- Copy ffffiiiilllleeee1111 to ffffiiiilllleeee2222, expanding tabs to columns 10, 19, 28, 37, ... :
-
- pppprrrr ----eeee9999 ----tttt <<<<ffffiiiilllleeee1111 >>>>ffffiiiilllleeee2222
-
- Print ffffiiiilllleeee1111 and ffffiiiilllleeee2222 simultaneously in a two-column listing with no
- header or trailer where both columns have line numbers:
-
- pppprrrr ----tttt ----nnnn ffffiiiilllleeee1111 |||| pppprrrr ----tttt ----mmmm ----nnnn ffffiiiilllleeee2222 -
-
- FFFFIIIILLLLEEEESSSS
- /dev/tty* If standard output is directed to one of the special files
- ////ddddeeeevvvv////ttttttttyyyy****, then other output directed to this terminal is
- delayed until standard output is completed. This prevents
- error messages from being interspersed throughout the
- output.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- cat(1), fold(1), pg(1).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-